import { Schema, SchemaTypes } from 'mongoose';
import config from 'src/config/config';
export const GoodsTypeAttributeSchema = new Schema(
    {
        goods_type_id: { type: SchemaTypes.ObjectId },
        title: { type: String },
        attr_type: { type: String }, //类型   1 input    2  textarea     3、select
        attr_value: { type: String }, //默认值： input  textarea默认值是空     select框有默认值  多个默认值以回车隔开
        status: { type: Number, default: 1 },
    },
    config.SchemaOptions,
);
